// mock请求layout相关数据
import createResponseData from '../Common';

export default {
  'POST /system/resource': (req: any, res: any) => {
    const menu = [
      {
        path: '/sdf',
        name: '用户充值管理',
        component: 'index',
      },
      {
        path: '/system',
        name: '系统管理',
        routes: [
          {
            path: '/df',
            component: 'index',
            name: '字典管理',
            icon: "PoundCircleOutlined",
            routes: [{
              path: '/',
              component: 'index',
              name: '特事管理hgsdf',
            }, {
              path: '/t23sdfge',
              component: 'index',
              name: '啊手动阀sdfg管理',
            }]
          },
          {
            path: '/te',
            component: 'index',
            name: '特事管理',
          }, {
            path: '/t23e',
            component: 'index',
            name: '啊手动阀管理',
          },
        ],
      },
      {
        path: '/member',
        name: '用户管理',
        routes: [
          {
            path: '/member',
            component: 'index',
            name: '用户管理',
          },
        ],
      },
    ];
    res.send(createResponseData(menu),);
  },
  'POST /system/setting': (req: any, res: any) => {
    const setting = {
      // 标题
      title: '后台管理系统',
      // 左上角 logo 的 url
      logo: '/logo.png',
      // 顶部导航栏的主题
      headerTheme: 'light',
      // 导航的主题，side 和 mix 模式下是左侧菜单的主题，top 模式下是顶部菜单
      navTheme: 'light',
      // layout 的加载态
      loading: false,
      // 布局设置 side top mix
      layout: 'mix',
      // 菜单切割，mix专属
      splitMenus: true,
      // 透传的系统水印
      waterMarkProps: {
        content: "楠楠"
      },
      // 全局配置
      config: {
        componentSize: 'small'
      }
    };
    res.send(createResponseData(setting));
  },
  'POST /system/isLogin': (req: any, res: any) => {
    res.send(createResponseData(false));
  },
};
